package com.ithailong.service;

import com.ithailong.spring.IthailongApplication;

/**
 * author:hlc
 * date:2023/12/25
 */
public class Test {
   public static void main(String[] args) {
      IthailongApplication ithailongApplication = new IthailongApplication(AppConfig.class);
//      Object userService = ithailongApplication.getBean("userService");
      System.out.println(ithailongApplication.getBean("userService"));
      System.out.println(ithailongApplication.getBean("userService"));
      System.out.println(ithailongApplication.getBean("userService"));
      System.out.println(ithailongApplication.getBean("userService"));
      UserService userService = (UserService) ithailongApplication.getBean("userService");
      userService.test();
   }
}
